<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>
<head>
	<meta name="decorator" content="moduleEdit" />
	<script type="text/javascript">
		$(document).ready(function() {
			$("#levelName").focus();
			$("#brandLevelForm").validate({
				submitHandler: function(form){
					Oosp_Loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
<div class="Report_f">
           <div class="Report_f_1">
                <div class="Report_f_title_1">等级新增</div>
                <ul class="nav nav-tabs Report_f_title_2">
                    <li><a href="#label_1" data-toggle="tab">基本信息</a></li>
                  </ul>
<!-- Tab panes -->
                  <div class="tab-content Report_f_title_3">
                    <div class="tab-pane active" id="label_1">
                         <div class="Report_f_title_4">
                              <form:form id="brandLevelForm" modelAttribute="brandLevel" action="${contextPath}/biz/brand/level/save" method="post" class="form-inline" role="form">
					           	   <form:hidden path="id"/>
								   <tags:message content="${message}"/>
								    <div class="f_2">
                                        <div class="form-group col-sm-6">
                                             <label for="inputtext3" class="col-sm-3 control-label f_4">等级名称:</label>
                                             <div class="col-sm-9 f_6">
                                            	   <form:input path="levelName" class="f_5 required" id="inputtext3"/>
                                             </div>
                                         </div>
                                         <div class="form-group col-sm-6">
                                             <label for="inputtext3" class="col-sm-3 control-label f_4">编码:</label>
                                             <div class="col-sm-9 f_6">
                                            	   <form:input path="code" class="f_5 required" id="inputtext3"/>
                                             </div>
                                         </div>
                                         <div class="form-group col-sm-6">
                                             <label for="inputtext3" class="col-sm-3 control-label f_4">类别:</label>
                                             <div class="col-sm-9 f_6">
                                            	   <ossp:select dictType="BRAND_TYPE" value="${ brandLevel.levelType}" name="levelType" id="levelType" class_="f_5 required"></ossp:select>
                                             </div>
                                         </div>
                                    </div>
                                    <div class="f_3">
                                        <div class="form-group col-xs-12">
                                             <label for="inputtext3" class="col-lb-1 control-label f_10">备注:</label>
                                             <div class="col-sm-10 col-lb-2 f_6">
                                                  <form:textarea id="remark" path="remark" htmlEscape="false" rows="3" class="form-control f_11"/>
                                             </div>
                                         </div>
                                    </div>
                                   <div class="f_12">
                                        <button type="button" class="btn btn-danger btn_5 btn_right" onclick="history.go(-1)">返&nbsp;回</button>
                                        <button type="submit" class="btn btn-success btn_5 btn_right">保&nbsp;存</button>
                                   </div>
                              </form:form>
                         </div>
                    </div>
				  </div>
				</div>	
			</div>
</body>
</html>